@echo off

set INSTALL_DIR=%~d0%~p0


if "%JAVA_HOME%"=="" goto default
   set JAVACMD=%JAVA_HOME%\bin\java
   goto end
:default
   set JAVACMD=java
:end

echo Using
%JAVACMD% -version
%JAVACMD% -jar "%INSTALL_DIR%launcher.jar" com.ashafa.launcher.Launcher
